package flca.osm.perst.model;

import org.garret.perst.FieldIndex;
import org.garret.perst.Persistent;
import org.garret.perst.Storage;

public class PRootClass extends Persistent
{	
	//node
	public FieldIndex<PNode> nodePk;
//	public FieldIndex<PNode> nodeLatIdx;
//	public FieldIndex<PNode> nodeLonIdx;
	//way
	public FieldIndex<PWay> wayPk;

	public PRootClass(Storage storage)
	{
		super(storage);
		nodePk = storage.<PNode> createFieldIndex(PNode.class, "id", true); // unique index
//		nodeLatIdx = storage.<PNode> createFieldIndex(PNode.class, "lat", false); // search index
//		nodeLonIdx = storage.<PNode> createFieldIndex(PNode.class, "lon", false); // search index

		wayPk = storage.<PWay> createFieldIndex(PWay.class, "id", true); // unique index
	}

}
